﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Automobile.service.BLL;
using Automobile.service.Model;
namespace Automobile.service.UI.Hander
{
    /// <summary>
    /// GetProductByName 的摘要说明
    /// </summary>
    public class GetProductByName : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            ProductBLL bll = new ProductBLL();
           string Product_Name = context.Request["Product_Name"];
           int WareHose_Id = Convert.ToInt32(context.Request["WareHose_Id"]);
           context.Response.Write(bll.GetProductByName(WareHose_Id, Product_Name));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}